<?phpclass Service{	protected $model=null;	protected $conf=null;	protected $m=null;	protected $t=array();		public function __construct(){		$this->conf=Conf::getIns();		$this->model=Model::getIns();		$this->m=$this->model->getConnection();		if(method_exists($this,'t')){			$table_array=$this->t();			$table_array=is_array($table_array)?$table_array:array($table_array);			foreach($table_array as $k=>$v) $this->t[$k]=table($v);		}	}	public function __get($name){		if(substr($name,0,2)=='t_') return $this->t[substr($name,2)];	}	public function _autoFill($data){        foreach($this->_auto as $k=>$v){            if(!array_key_exists($v[0],$data)){                switch($v[1]){                    case 'value':                    $data[$v[0]]=$v[2];                    break;                    case 'function':                    $data[$v[0]]=call_user_func($v[2]);                    break;                }            }        }        return $data;    }//}